package com.dfbz.demo_第七题;

import java.io.FileReader;
import java.util.Properties;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo02_Properties加载配置文件 {
    public static void main(String[] args) throws Exception{

//        FileInputStream fis = new FileInputStream("config.properties");
        FileReader fr = new FileReader("config.properties");

        // 属性集
        Properties prop = new Properties();
        prop.load(fr);

        System.out.println(prop);
    }
}
